<?php 
use_helper('Date');
 
echo $gamePager->renderNavigationTop();  
 
echo _open('ul.elements');  
 
foreach ($gamePager as $game)  
{  
  echo _open('li.element');  
 
    // wrap the game link into a H2 tag with the t_medium CSS class  
    echo _tag('h2.t_medium', _link($game));  
    echo _media($game->Image)->size(200,150)->set('div.image');
    echo _tag('div.description',$game->getDescription());
    // show the game extract, processed with markdown  
    //echo markdown($game->extract, '.extract');  
     echo _tag('div.clear', ''); 
    // in a P tag, we put some infos about the game  
    echo _tag('p.game_infos',  
 
      // creation date of the game, formatted with a symfony helper  
      _tag('span', format_date($game->createdAt, 'D')).  
      ' | '.    
      // another link to the game, with the "Read more" translated text  
      _link($game)->text(__('Play this game...'))  
    );  
 
  echo _close('li');  
 
}  
 
echo _close('ul');  
 
echo $gamePager->renderNavigationBottom();  